﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace zhihu {
    public partial class FormSetCookie : Form {
        public FormSetCookie() {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e) {
            if (string.IsNullOrEmpty(txtCookies.Text)) {
                MessageBox.Show("请填写登陆成功的cookies!");
                return;
            }
            // 保存设置的cookies
            GlobalInfo.LoginCookies = txtCookies.Text.Trim();
            this.DialogResult = DialogResult.OK;
        }
    }
}
